package com.flying.pas.form.model;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.annotation.Property;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="f_action",title="表单操作", table="f_action", primaryKeys={"action_id"})
public class Action extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "f_action";

	public final static String ACTION_ID = "action_id";
	public final static String FORM_ID = "form_id";
	public final static String TITLE = "title";
	public final static String ICON_CLS = "icon_cls";
	public final static String ACTION = "action";
	public final static String ORDER_INDEX = "order_index";
	public final static String PERM_ID = "perm_id";
	public final static String REMARKS = "remarks";
	
	
	@Param(value=ACTION_ID,   required=true,   maxlength=0,	desc="操作ID" , generator=Codes.AUTO_INCREMENT, 
			props= {@Property(name="type",value="hidden")})
	private Long actionId;
	
	@Param(value=FORM_ID,   required=true,   maxlength=0,	desc="表单", 
			props= {@Property(name="type",value="hidden")} )
	private Long formId;
	
	@Param(value=TITLE,   required=true,   maxlength=50,	desc="标题" )
	private String title;
	
	@Param(value=ICON_CLS,   required=false,   maxlength=100,	desc="显示风格" )
	private String iconCls;
	
	@Param(value=ACTION,   required=true,   maxlength=100,	desc="操作行为" )
	private String action;
	
	@Param(value=ORDER_INDEX,   required=false,   maxlength=0,	desc="顺序" )
	private Integer orderIndex;
	
	@Param(value=PERM_ID,   required=false,   maxlength=0,	desc="权限" )
	private Long permId;
	
	@Param(value=REMARKS,   required=false,   maxlength=200,	desc="说明" )
	private String remarks;
	
	
	public String getAction() {
		return this.action;
	}
	
	public void setAction(String action) {
		this.action = action;
	}
	
	public Long getActionId() {
		return this.actionId;
	}
	
	public void setActionId(Long actionId) {
		this.actionId = actionId;
	}
	
	public Long getFormId() {
		return this.formId;
	}
	
	public void setFormId(Long formId) {
		this.formId = formId;
	}
	
	public String getIconCls() {
		return this.iconCls;
	}
	
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	
	public Integer getOrderIndex() {
		return this.orderIndex;
	}
	
	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}
	
	public Long getPermId() {
		return this.permId;
	}
	
	public void setPermId(Long permId) {
		this.permId = permId;
	}
	
	public String getTitle() {
		return this.title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	

}